package com.st.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.st.entity.Provinces;
import com.st.mapper.IProvincesMapper;
import com.st.service.IProvincesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProvincesServiceImpl extends ServiceImpl<IProvincesMapper, Provinces> implements IProvincesService {

    @Autowired
    private IProvincesMapper iProvincesMapper;

    @Override
    public List<Provinces> findAllProvinces() {
        QueryWrapper<Provinces> queryWrapper = new QueryWrapper<>();
        return iProvincesMapper.selectList(queryWrapper);
    }
}
